package com.example.d12_homework.homework02;

import java.util.Scanner;

/**
 * 遥控器类
 */
public class RemoteControl {
    public void controlTV(TV tv) {
        Scanner sc = new Scanner(System.in);
        System.out.println("遥控器控制电视");
        System.out.println("请输入电视节目的信息");
        String channel = sc.next();
        tv.play(channel);
    }
}
